#! /bin/bash
server_array=(31 32 33 35 36 37)
ipadd=192.168.2
#remote_cmd="cd /tmp;"
for server in ${server_array[*]}
do
	echo "copy to $server >>>"
	ssh-copy-id -i ~/.ssh/id_rsa.pub $ipadd.$server
	#ssh -t ubuntu@$ipadd.$server $remote_cmd $1
	echo "close connect <<<"
done
